import { createRequest } from '/@/api/service';
const module = 'ib/accesscontrol/v1/accessControlUserFaceApi/';
/**
 * 用户人脸信息添加(app)
 */
function ACCESS_CONTROL_USER_FACE_SAVE_APP(
  data: AccessControlUserFaceApi.AccessControlUserFaceReq,
  header: object = {},
): Promise<AccessControlUserFaceApi.AccessControlUserFaceResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}accessControlUserFaceSaveApp`,
    data,
    header,
    'POST',
  );
}

/**
 * 用户人脸信息移除(app)
 */
function ACCESS_CONTROL_USER_FACE_REMOVE_APP(
  data: AccessControlUserFaceApi.AccessControlUserFaceReq,
  header: object = {},
): Promise<AccessControlUserFaceApi.AccessControlUserFaceResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}accessControlUserFaceRemoveApp`,
    data,
    header,
    'POST',
  );
}

/**
 * 用户人脸信息查询(app)
 */
function ACCESS_CONTROL_USER_FACE_QUERY_APP(
  data: AccessControlUserFaceApi.AccessControlUserFaceQueryAppReq,
  header: object = {},
): Promise<AccessControlUserFaceApi.AccessControlUserFaceQueryAppResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}accessControlUserFaceQueryApp`,
    data,
    header,
    'POST',
  );
}

export {
  ACCESS_CONTROL_USER_FACE_SAVE_APP,
  ACCESS_CONTROL_USER_FACE_REMOVE_APP,
  ACCESS_CONTROL_USER_FACE_QUERY_APP,
};
